import operate from '@dfeidao/atom-nodejs/db/operate';
// import sys_date from '@dfeidao/atom-nodejs/msg/sys-date';
import { systemid } from '../atom/config';
interface Message {
	filter: {
		job_no: string;
	};
	productid: string;
}

export default async function atom(msg: Message, action_id: string, session_id: string) {
	const { del, exec } = operate(action_id, session_id, systemid);
	del('task', {
		job_no: msg.filter.job_no,
		productid: msg.productid
	});
	const res = await exec();
	return res;
}
